/*
package com.tgy.admin.config;

import com.tgy.core.repository.FriendLinkRepository;
import com.tgy.mo.FriendLinkMO;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.repository.MongoRepository;

import javax.annotation.Resource;
import java.util.List;
import java.util.Optional;

*/
/**
 * @author tianguiyin
 * @version 1.0
 * @date 2022/7/21 11:28
 *//*

@Configuration
public class FriendLinkConfig {

    @Resource
    MongoRepository mongoRepository;

    @Bean
    public FriendLinkRepository getFriendLinkRepository(){
        return new FriendLinkRepository() {
            @Override
            public <S extends FriendLinkMO> S save(S s) {
                return null;
            }

            @Override
            public <S extends FriendLinkMO> List<S> saveAll(Iterable<S> iterable) {
                return null;
            }

            @Override
            public Optional<FriendLinkMO> findById(String s) {
                return Optional.empty();
            }

            @Override
            public boolean existsById(String s) {
                return false;
            }

            @Override
            public List<FriendLinkMO> findAll() {
                return null;
            }

            @Override
            public Iterable<FriendLinkMO> findAllById(Iterable<String> iterable) {
                return null;
            }

            @Override
            public long count() {
                return 0;
            }

            @Override
            public void deleteById(String s) {

            }

            @Override
            public void delete(FriendLinkMO friendLinkMO) {

            }

            @Override
            public void deleteAll(Iterable<? extends FriendLinkMO> iterable) {

            }

            @Override
            public void deleteAll() {

            }

            @Override
            public List<FriendLinkMO> findAll(Sort sort) {
                return null;
            }

            @Override
            public Page<FriendLinkMO> findAll(Pageable pageable) {
                return null;
            }

            @Override
            public <S extends FriendLinkMO> S insert(S s) {
                return null;
            }

            @Override
            public <S extends FriendLinkMO> List<S> insert(Iterable<S> iterable) {
                return null;
            }

            @Override
            public <S extends FriendLinkMO> Optional<S> findOne(Example<S> example) {
                return Optional.empty();
            }

            @Override
            public <S extends FriendLinkMO> List<S> findAll(Example<S> example) {
                return null;
            }

            @Override
            public <S extends FriendLinkMO> List<S> findAll(Example<S> example, Sort sort) {
                return null;
            }

            @Override
            public <S extends FriendLinkMO> Page<S> findAll(Example<S> example, Pageable pageable) {
                return null;
            }

            @Override
            public <S extends FriendLinkMO> long count(Example<S> example) {
                return 0;
            }

            @Override
            public <S extends FriendLinkMO> boolean exists(Example<S> example) {
                return false;
            }

            @Override
            public List<FriendLinkMO> getAllByIsDelete(Integer isDelete) {
                return null;
            }
        };
    }

}
*/
